﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="CreateHappyPet.aspx.cs" Inherits="Users_CreateHappyPet" %>

<%@ Register assembly="DotNetTextBox" namespace="DotNetTextBox" tagprefix="DNTB" %> 
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <asp:PlaceHolder Visible="false" runat="server">
         <script src="../Script/jquery-1.3.2-vsdoc2.js" type="text/javascript"></script>
    </asp:PlaceHolder>
    <%=this.UI_Head(Base_CurrPath, "", "")%>
    <link rel="stylesheet" type="text/css" href="../Css/Users.css" />
    <link href="../Script/formValidator/style/validator.css" rel="stylesheet" type="text/css" />
    <script src="../Script/formValidator/jquery_last.js" type="text/javascript"></script>
    <script src="../Script/formValidator/formValidator.js" type="text/javascript"></script>
    <script src="../Script/formValidator/formValidatorRegex.js" type="text/javascript"></script>
    <script language="javascript" src="../Script/formValidator/DateTimeMask.js" type="text/javascript"></script>
    <script src="../Script/ConvertTime.js" type="text/javascript"></script> 
    <script src="../Script/province.aspx"></script>
    <script src="../Script/popup.js"></script>
    <script type="text/javascript">
        $(document).ready(function() {
        $.formValidator.initConfig({ alertmessage: false, formid: "HappyPet_Form", onerror: function(msg) { alert(msg) } });
        $("#txtPetName").formValidator({ tipid: "txtPetNameTip", onshow: "请输入宠物名", onfocus: "宠物名不能为空", oncorrect: "输入正确" }).inputValidator({ min: 1, max: 25, empty: { leftempty: false, rightempty: false, emptyerror: "宠物名两边不能有空符号" }, onerror: "宠物名长度必须在1-25位,请确认" });
        $("#WebEditor1").formValidator({ tipid: "divContentTip", onshow: "请输入内容", onfocus: "内容不能为空", oncorrect: "输入正确" }).inputValidator({ empty: { leftempty: false, rightempty: false, emptyerror: "内容两边不能有空符号" }, onerror: "内容不能为空,请确认" });
        });
        function hastemplate()
        {
            var seltemplateId=document.getElementById("templateId");
            if(seltemplateId==null)
            {
                alert("暂无模板,您无法创建!");
                return false;
            }
            return true;
        }
    </script>
</head>
<body>
<form id="HappyPet_Form" runat="server">
    <%=this.UI_TopControl()%>
    <div class="topbanner bodyList">
        <div class="body_995">
            <div class="Member_left">
                <%=this.UI_Users_loginOK()%>
                <%=this.UI_UsersDhtList() %>
            </div>
            <div class="Member_Right">
                <div class="Member_right_dht">
                    <img src="../Images/class_hy.jpg" /></div>
                <div class="Member_right_CntLIst">
           
           
           
<table cellpadding="0" cellspacing="0" border="0" width="100%" align=center>

  <tr>
	<td height="25" align="center" bgcolor="#E3DEBE" class="title">添加宠物乐园</TD>
    </tr>
    <tr align="center" class="tdbg" > 
      <td height="40">
            
             <asp:Panel ID="Panel2" runat="server" Visible="true" >    
                <table width="100%" border="1" cellspacing="0" cellpadding="0" bordercolordark="#FFFFFF">

                
               
                        <tr>
            <td width="18%" align="center" style="padding:4px;" ><strong>宠物名:		</strong></td>
            <td width="82%" align="left" style="padding:4px;"class="tdIndiv"  ><div><asp:TextBox ID="txtPetName"  MaxLength="30"
                    runat="server" Width="162px"></asp:TextBox></div> <DIV  id="txtPetNameTip" ></Div></td>
                    </tr>
                
           
            <tr>
              <td align="center" style="padding:4px;" width="18%">
                 <strong>宠物照片:		</strong></td>
              <td align="left" style="padding:4px;" width="82%"><asp:TextBox ID="Txt_UpImg" 
                      runat="server" Width="265px" Text="images/nopic.jpg" ></asp:TextBox>&nbsp;<input type="button" class="go-wenbenkuang" value="上传图片" onclick="javascript:wy_addPhotoCat('../App/UploadHappyPetPhoto.aspx?inputobj=Txt_UpImg','宠物乐园照片上传',500,200)"  /></td>
            </tr>
            <tr>
            <td width="18%" align="center" style="padding:4px;"><strong>内容:		</strong></td>
            <td width="82%" align="left" style="padding:4px;"  class="tdIndiv" ><div><DNTB:WebEditor ID="WebEditor1" runat="server" /><div id="divContentTip" class="red_FF" >*</div>  
            </td>
            </tr> 
            <tr>
            <td width="18%" align="center" style="padding:4px;"><strong>背景音乐:		</strong></td>
            <td width="82%" align="left" style="padding:4px;"  class="tdIndiv" ><asp:DropDownList ID="ddlMusic" runat="server" />&nbsp;
            </td></tr> 
            
      <%--  <tr>
            <td width="18%" align="center" style="padding:4px;"><strong>模板选择:		</strong></td>
            <td width="82%" align="left" style="padding:4px;"><%=tempBll.TemplateList(AspNetCs.Enumerations.Channel_Enum.Channel_Type.HappyPet,0,(int)Base_GetUserInfo.Point,configInfo.HappyPet) %></td>
       </tr>--%>
                  
                    <tr>
                        <td align="center" style="padding:4px;" width="18%">
                            &nbsp;</td>
                        <td align="left" style="padding:4px;" width="82%">
                            <asp:Button ID="btnCreate" runat="server" Text="立即添加" 
                                OnClientClick="return hastemplate();" onclick="btnCreate_Click" />
                        </td>
                    </tr>

              
                </table>
                 
             </asp:Panel>
            
            
                    
                    
                </td>
                    </tr>
    </table>   
           
           
           
           
                    
                </div>
            </div>
        </div>
        <br />
    </div>
    <%#Eval("MuId") %>
    
    <!-- 弹出层 -->
    <div id="divPop" style="position: absolute; display:none;
        width: 107px; height: 145px;">
        <div style="text-align: center;">
            <img src="../images/nopic.jpg"  id="ThumbImg" onload="javascript:DrawImage(this,107,145);" />
        </div>
    </div>
    
     <!-- 弹出层 -->
    <div id="divPopTwo" style="position: absolute; display:none;
        width: 107px; height: 145px;">
        <div style="text-align: center;">
            <img src="../images/nopic.jpg"  id="ThumbImgTwo" onload="javascript:DrawImage(this,107,145);" />
        </div>
    </div>
    
    
</form>   
</body>
</html>

